package com.ctshk.rpc.ship.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/5/28
 */
@Data
@ApiModel("為計算成本價+加付費、庫存響應參數")
public class ShipAddPriceDTO implements Serializable {

    @ApiModelProperty("規格ID1")
    private Long attr1Id;

    @ApiModelProperty("規格ID2")
    private Long attr2Id;

    @ApiModelProperty("產品ID")
    private Long productId;

    @ApiModelProperty("权限范围类型（1：自营禁售 2 所有部门 3指定部门/人员）")
    private Integer visableType;

    @ApiModelProperty("关联ID，用户ID或部门ID")
    private Long relationId;

    @ApiModelProperty("數值類型： 1 金額，2百分比")
    private Integer adjustType;

    @ApiModelProperty("加幅費")
    private BigDecimal amount;

    @ApiModelProperty("成本價*匯率+加幅費")
    private BigDecimal costAndFee;

    @ApiModelProperty("百分比")
    private Double percent;

    @ApiModelProperty("是否限制售額：1 限購 0 不限購")
    private Integer isLimit;

    @ApiModelProperty("限購數量")
    private Integer limitNum;

    @ApiModelProperty("成本價")
    private BigDecimal costPrice;

    @ApiModelProperty("餘票")
    private Integer solidStock;

    @ApiModelProperty("匯率")
    private BigDecimal exchangeRate;
}
